package com.ruibang.glass.material.entity.cp;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruibang.glass.material.dto.FileInfoDTO;
import com.ruibang.glass.material.entity.MaterialCpBcpItems;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 半成品出库详情
 * </p>
 *
 * @author mameng
 * @since 2024-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "GMaterialBcpProductsOut对象", description = "半成品出库详情")
@TableName(value = "g_material_cp_products_out")
public class MaterialCPProductsOut extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "出库单号")
    private String outStorageOrderNo;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "物品类型")
    private String itemType;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "审批状态")
    private String approveStatus;

    @ApiModelProperty(value = "当前审批人")
    private String approvePersion;

    @ApiModelProperty(value = "领料人")
    private String preparer;

    @ApiModelProperty(value = "领料部门主管")
    private String preparerLeader;

    @ApiModelProperty(value = "出库用途")
    private String outReason;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime;

    @ApiModelProperty(value = "仓库主管")
    private String wareHousePerson;

    @ApiModelProperty(value = "仓库管理员")
    private String wareHouseAdmin;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "出库状态")
    private String outStatus;

    @ApiModelProperty(value = "菜单Id")
    @TableField(exist = false)
    private String menuId;

    @ApiModelProperty(value = "模块区分")
    @TableField(exist = false)
    private String warehouseCode;

    @ApiModelProperty(value = "制单人")
    private String preparerId;

    @ApiModelProperty(value = "审批状态")
    private String spStatus;

    @ApiModelProperty(value = "流程Id")
    @TableField(exist = false)
    private String processId;

    @ApiModelProperty(value = "审批状态中文")
    @TableField(exist = false)
    private String spStatusCH;

    @ApiModelProperty(value = "物品名称")
    private String itemName;

    @ApiModelProperty(value = "物品编号")
    private String itemCode;

    @ApiModelProperty(value = "条形码编号")
    private String barcodeNumber;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @ApiModelProperty(value = "LoT数量")
    private BigDecimal lotQuantity;

    @ApiModelProperty(value = "Model等级")
    private String modelGrade;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "A型架")
    private String aTypeShelf;

    @ApiModelProperty(value = "库位")
    private String storageLocation;

    @ApiModelProperty(value = "物品备注")
    private String itemRemark;

    @ApiModelProperty(value = "出库单号")
    private String inNumber;

    @ApiModelProperty(value = "审批人")
    @TableField(exist = false)
    private String approveUser;

    @ApiModelProperty(value = "审批人")
    @TableField(exist = false)
    private String approveUserId;

    @ApiModelProperty(value = "审批节点")
    @TableField(exist = false)
    private String nodeName;

    @ApiModelProperty(value = "订单号")
    private String orderNumber;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "发货单")
    private String deliveryNote;

    @ApiModelProperty(value = "退货Id")
    private String returnId;

    @ApiModelProperty(value = "合同编号")
    private String contractNumber;

    @ApiModelProperty(value = "合同Id")
    private String contractId;

    @ApiModelProperty(value = "文件集合")
    @TableField(exist = false)
    private List<String> fileIds;
    @ApiModelProperty(value = "庭审报告")
    @TableField(exist = false)
    private List<FileInfoDTO> fileInfoDTOS;

    @ApiModelProperty(value = "客户Id")
    private String customerId;

    @ApiModelProperty(value = "客户编号")
    private String customerCode;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "执行标准")
    private String executionStandard;

    @ApiModelProperty(value = "发货Id")
    private String shppingId;

    @ApiModelProperty(value = "是否来自销售1是2否")
    private String trueOrFalseFormSale;


    @ApiModelProperty(value = "成品半成品关联物品表")
    @TableField(exist = false)
    private List<MaterialCpBcpItems> materialCpBcpItemsList;

}
